<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>订单</title>
</head>
<body>
<div id="order_detail" class="container" style="padding-top: 20px;width: 800px;border: 1px solid black">
    <h3>订单编号：{{ order_code }}</h3>
    <ul>
        {% for good in goods %}
            <div style="border: 1px solid #8CBE7C;width: 500px;padding: 10px;margin: 10px">
            <li class="menuList">

                <p>商品名称：{{ good.name }}</p>
                <p >商品图片:<img src="{{ good.img }}" alt=""></p>
                <p class="presentPrice">商品单价:￥{{ good.price }}</p>
                <p>购买数量：{{ good.counts }}</p>
            </li>
            </div>

        {% endfor %}

    </ul>
    <h4 class="total_price">总价：<span id="total_price">{{ total_amount }}</span></h4>
    <button  id="alipay" class="btn btn-success btn-block" style="float: right;width: 80px;background: yellowgreen"><a href="{% url 'orders:pay' order_code %}">支付</a></button>

</div>
</body>
</html>